package com.qilu.pe.ui.activity;

import android.os.Bundle;
import android.widget.TextView;

import com.qilu.pe.R;
import com.qilu.pe.base.Base2Activity;
import com.qilu.pe.support.util.ViewUtil;

public class ModifyUserInfoActivity extends Base2Activity {
    private TextView tv_name0, tv_rank0, tv_sex0;

    @Override
    protected int getLayoutRes() {
        return R.layout.activity_modify_user_info;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        tv_name0 = findViewById(R.id.tv_name0);
        tv_rank0 = findViewById(R.id.tv_rank0);
        tv_sex0 = findViewById(R.id.tv_sex0);

        setHeadTitle("修改资料");

        ViewUtil.setImportantText(tv_name0, "*姓名");
        ViewUtil.setImportantText(tv_rank0, "*职称");
        ViewUtil.setImportantText(tv_sex0, "*性别");
    }

    // 修改必填项文字样式
//    private void setImportantText() {
//        ForegroundColorSpan foregroundColorSpan = new ForegroundColorSpan(Color.RED);
//
//        SpannableString spannableString = new SpannableString("*日报类型");
//        spannableString.setSpan(foregroundColorSpan, 0, 1, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
//        tv_type0.setText(spannableString);
//
//        SpannableString spannableString2 = new SpannableString("*日期");
//        spannableString2.setSpan(foregroundColorSpan, 0, 1, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
//        tv_date0.setText(spannableString2);
//
//        SpannableString spannableString3 = new SpannableString("*内容");
//        spannableString3.setSpan(foregroundColorSpan, 0, 1, Spanned.SPAN_INCLUSIVE_INCLUSIVE);
//        tv_content0.setText(spannableString3);
//    }

}